package br.com.ia.bean;

/**
 *
 * @author Jonas Cezar
 */
public class Aresta {

    private int custo;
    private Host host;

    public Aresta() {
    }

    public Aresta(int custo, Host host) {
        this.custo = custo;
        this.host = host;
    }

    public int getCusto() {
        return custo;
    }

    public void setCusto(int custo) {
        this.custo = custo;
    }

    public Host getHost() {
        return host;
    }

    public void setHost(Host host) {
        this.host = host;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Aresta other = (Aresta) obj;
        if (this.host != other.host && (this.host == null || !this.host.equals(other.host))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 97 * hash + (this.host != null ? this.host.hashCode() : 0);
        return hash;
    }
    
}
